/**
 * Created by mooshroom on 2015/4/7.
 */
define('home', function () {
    return home = avalon.define({
        $id: "home",
        apiID:"",
        apiURL:"",
        docShow:false,

        docToggle:function(event){
            var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
            if (keyCode == 13) {
                if(home.docShow){
                    modal.getOutByBtn()
                    home.docShow=false
                }
                else{
                    window.location.href="#!/doc/"+home.apiID;  //处理函数
                    home.docShow=true
                }


            }
        }
    })
})